inherited fmTemplateLesson: TfmTemplateLesson
  Left = 188
  Top = 191
  Width = 1204
  Height = 950
  Caption = #1064#1072#1073#1083#1086#1085#1099' '#1091#1088#1086#1082#1086#1074
  Constraints.MinHeight = 950
  Constraints.MinWidth = 1025
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 13
  inherited sbBottom: TStatusBar
    Top = 896
    Width = 1196
  end
  inherited Panel1: TPanel
    Width = 1196
    inherited BitBtn1: TBitBtn
      Left = 1026
    end
    inherited BitBtn2: TBitBtn
      Left = 1114
    end
  end
  object GroupBox2: TGroupBox [2]
    Left = 0
    Top = 45
    Width = 1196
    Height = 68
    Align = alTop
    Caption = #1050#1088#1080#1090#1077#1088#1080#1080' '#1087#1086#1080#1089#1082#1072':'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clGray
    Font.Height = -13
    Font.Name = 'Tahoma'
    Font.Style = [fsBold]
    ParentFont = False
    TabOrder = 2
    DesignSize = (
      1196
      68)
    object Label13: TLabel
      Left = 11
      Top = 17
      Width = 51
      Height = 13
      Caption = #1058#1080#1087' '#1091#1088#1086#1082#1072
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clGray
      Font.Height = -11
      Font.Name = 'Tahoma'
      Font.Style = []
      ParentFont = False
    end
    object Label22: TLabel
      Left = 260
      Top = 17
      Width = 65
      Height = 13
      Caption = #1060#1086#1088#1084#1072' '#1091#1088#1086#1082#1072
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clGray
      Font.Height = -11
      Font.Name = 'Tahoma'
      Font.Style = []
      ParentFont = False
    end
    object eTypeLess: TcxButtonEdit
      Tag = 10
      Left = 10
      Top = 31
      ParentFont = False
      Properties.Buttons = <
        item
          Glyph.Data = {
            F6000000424DF600000000000000760000002800000010000000100000000100
            0400000000008000000000000000000000001000000000000000000000000000
            8000008000000080800080000000800080008080000080808000C0C0C0000000
            FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00FFFFFFFFFFFF
            FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
            FFFFFFFFFFF0FFFFFFFFFFFFFF000FFFFFFFFFFFF00000FFFFFFFFFF0000000F
            FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
            FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF}
        end>
      Properties.MaxLength = 0
      Properties.ReadOnly = True
      Properties.OnButtonClick = eTypeLessPropertiesButtonClick
      Style.Font.Charset = DEFAULT_CHARSET
      Style.Font.Color = clWindowText
      Style.Font.Height = -13
      Style.Font.Name = 'Tahoma'
      Style.Font.Style = [fsBold]
      Style.LookAndFeel.SkinName = ''
      Style.Shadow = False
      Style.IsFontAssigned = True
      StyleDisabled.LookAndFeel.SkinName = ''
      StyleFocused.LookAndFeel.SkinName = ''
      StyleHot.LookAndFeel.SkinName = ''
      TabOrder = 0
      Width = 239
    end
    object eFormLess: TcxButtonEdit
      Tag = 10
      Left = 258
      Top = 31
      ParentFont = False
      Properties.Buttons = <
        item
          Glyph.Data = {
            F6000000424DF600000000000000760000002800000010000000100000000100
            0400000000008000000000000000000000001000000000000000000000000000
            8000008000000080800080000000800080008080000080808000C0C0C0000000
            FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00FFFFFFFFFFFF
            FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
            FFFFFFFFFFF0FFFFFFFFFFFFFF000FFFFFFFFFFFF00000FFFFFFFFFF0000000F
            FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
            FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF}
        end>
      Properties.MaxLength = 0
      Properties.ReadOnly = True
      Properties.OnButtonClick = eFormLessPropertiesButtonClick
      Style.Font.Charset = DEFAULT_CHARSET
      Style.Font.Color = clWindowText
      Style.Font.Height = -13
      Style.Font.Name = 'Tahoma'
      Style.Font.Style = [fsBold]
      Style.LookAndFeel.SkinName = ''
      Style.Shadow = False
      Style.IsFontAssigned = True
      StyleDisabled.LookAndFeel.SkinName = ''
      StyleFocused.LookAndFeel.SkinName = ''
      StyleHot.LookAndFeel.SkinName = ''
      TabOrder = 1
      Width = 239
    end
    object tbFilterDeti: TcxButton
      Tag = 12
      Left = 1163
      Top = 71
      Width = 27
      Height = 23
      Hint = #1048#1089#1082#1072#1090#1100
      Anchors = [akTop, akRight]
      ParentShowHint = False
      ShowHint = True
      TabOrder = 2
      TabStop = False
      Glyph.Data = {
        76010000424D7601000000000000760000002800000020000000100000000100
        0400000000000001000000000000000000001000000000000000000000000000
        80000080000000808000800000008000800080800000C0C0C000808080000000
        FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00777777777777
        7777777777777777777777077777777777777787777777777777700077777777
        777778887777777777770F00077777777777878887777777777770F000777777
        77777878887777777777770F00078000877777878887F888F7777770F0008888
        807777787888FFFFF87777770007777778077777888777777F877777707777FF
        F78877777877777777FF777770777777FF707777787777777778777770777777
        7F7077777877777777787777788FF777777077777FF7777777787777788FF777
        777877777FF77777777F777778087777780777777F8F77777F87777777708888
        807777777778FFFFF877777777778000877777777777F888F777}
      LookAndFeel.SkinName = 'Blue'
      NumGlyphs = 2
    end
    object cxButton1: TcxButton
      Tag = 12
      Left = 506
      Top = 30
      Width = 27
      Height = 23
      Hint = #1048#1089#1082#1072#1090#1100
      ParentShowHint = False
      ShowHint = True
      TabOrder = 3
      TabStop = False
      OnClick = cxButton1Click
      Glyph.Data = {
        76010000424D7601000000000000760000002800000020000000100000000100
        0400000000000001000000000000000000001000000000000000000000000000
        80000080000000808000800000008000800080800000C0C0C000808080000000
        FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00777777777777
        7777777777777777777777077777777777777787777777777777700077777777
        777778887777777777770F00077777777777878887777777777770F000777777
        77777878887777777777770F00078000877777878887F888F7777770F0008888
        807777787888FFFFF87777770007777778077777888777777F877777707777FF
        F78877777877777777FF777770777777FF707777787777777778777770777777
        7F7077777877777777787777788FF777777077777FF7777777787777788FF777
        777877777FF77777777F777778087777780777777F8F77777F87777777708888
        807777777778FFFFF877777777778000877777777777F888F777}
      LookAndFeel.SkinName = 'Blue'
      NumGlyphs = 2
    end
  end
  object Panel3: TPanel [3]
    Left = 0
    Top = 113
    Width = 1196
    Height = 35
    Align = alTop
    BevelOuter = bvNone
    TabOrder = 3
    object ToolBar1: TToolBar
      Left = 0
      Top = 0
      Width = 97
      Height = 34
      Align = alCustom
      BorderWidth = 2
      ButtonHeight = 24
      EdgeInner = esNone
      EdgeOuter = esNone
      Images = DMInv.ilActive
      TabOrder = 0
      Transparent = True
      object ToolButton1: TToolButton
        Left = 0
        Top = 2
        Hint = #1044#1086#1073#1072#1074#1080#1090#1100' '#1096#1072#1073#1083#1086#1085
        Caption = #1044#1086#1073#1072#1074#1080#1090#1100' '#1096#1072#1073#1083#1086#1085
        ImageIndex = 30
        ParentShowHint = False
        ShowHint = True
        OnClick = ToolButton1Click
      end
      object ToolButton2: TToolButton
        Left = 23
        Top = 2
        Hint = #1056#1077#1076#1072#1082#1090#1080#1088#1086#1074#1072#1090#1100' '#1096#1072#1073#1083#1086#1085
        Caption = #1056#1077#1076#1072#1082#1090#1080#1088#1086#1074#1072#1090#1100' '#1096#1072#1073#1083#1086#1085
        ImageIndex = 2
        ParentShowHint = False
        ShowHint = True
        OnClick = ToolButton2Click
      end
      object ToolButton3: TToolButton
        Left = 46
        Top = 2
        Hint = #1059#1076#1072#1083#1080#1090#1100' '#1096#1072#1073#1083#1086#1085
        Caption = #1059#1076#1072#1083#1080#1090#1100' '#1096#1072#1073#1083#1086#1085
        ImageIndex = 29
        ParentShowHint = False
        ShowHint = True
        OnClick = ToolButton3Click
      end
    end
    object cxButton2: TcxButton
      Tag = 12
      Left = 96
      Top = 5
      Width = 171
      Height = 26
      Caption = #1056#1077#1076#1072#1082#1090#1080#1088#1086#1074#1072#1090#1100' '#1089#1087#1088#1072#1074#1086#1095#1085#1080#1082
      ParentShowHint = False
      ShowHint = True
      TabOrder = 1
      TabStop = False
      OnClick = cxButton1Click
      LookAndFeel.SkinName = 'Blue'
    end
  end
  object GroupBox1: TGroupBox [4]
    Left = 0
    Top = 148
    Width = 1196
    Height = 205
    Align = alTop
    Caption = #1064#1072#1073#1083#1086#1085#1099':'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clGray
    Font.Height = -13
    Font.Name = 'Tahoma'
    Font.Style = [fsBold]
    ParentFont = False
    TabOrder = 4
    object dbgTemplateLesson: TcxGrid
      Left = 2
      Top = 18
      Width = 1192
      Height = 185
      Align = alClient
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -13
      Font.Name = 'Tahoma'
      Font.Style = []
      ParentFont = False
      TabOrder = 0
      LookAndFeel.Kind = lfStandard
      object tvTemplateLesson: TcxGridDBTableView
        NavigatorButtons.ConfirmDelete = False
        NavigatorButtons.First.Visible = True
        NavigatorButtons.PriorPage.Visible = True
        NavigatorButtons.Prior.Visible = True
        NavigatorButtons.Next.Visible = True
        NavigatorButtons.NextPage.Visible = True
        NavigatorButtons.Last.Visible = True
        NavigatorButtons.Insert.Visible = False
        NavigatorButtons.Append.Visible = False
        NavigatorButtons.Delete.Visible = False
        NavigatorButtons.Edit.Visible = False
        NavigatorButtons.Post.Visible = False
        NavigatorButtons.Cancel.Visible = False
        NavigatorButtons.Refresh.Visible = False
        NavigatorButtons.SaveBookmark.Visible = False
        NavigatorButtons.GotoBookmark.Visible = False
        NavigatorButtons.Filter.Visible = False
        FilterBox.Position = fpTop
        OnCellDblClick = tvTemplateLessonCellDblClick
        DataController.DataSource = dsTemplLesson
        DataController.Summary.DefaultGroupSummaryItems = <>
        DataController.Summary.FooterSummaryItems = <
          item
            Kind = skCount
            FieldName = 'pid'
          end>
        DataController.Summary.SummaryGroups = <>
        FilterRow.InfoText = #1065#1077#1083#1082#1085#1080#1090#1077' '#1079#1076#1077#1089#1100' '#1076#1083#1103' '#1089#1086#1079#1076#1072#1085#1080#1103' '#1092#1080#1083#1100#1090#1088#1072
        NewItemRow.InfoText = #1065#1105#1083#1082#1085#1080#1090#1077' '#1079#1076#1077#1089#1100' '#1076#1083#1103' '#1076#1086#1073#1072#1074#1083#1077#1085#1080#1103' '#1085#1086#1074#1086#1081' '#1089#1090#1088#1086#1082#1080
        OptionsBehavior.CellHints = True
        OptionsBehavior.IncSearch = True
        OptionsCustomize.ColumnFiltering = False
        OptionsData.CancelOnExit = False
        OptionsData.Deleting = False
        OptionsData.DeletingConfirmation = False
        OptionsData.Editing = False
        OptionsData.Inserting = False
        OptionsView.NavigatorOffset = 10
        OptionsView.NoDataToDisplayInfoText = '<'#1053#1077#1090' '#1076#1072#1085#1085#1099#1093'>'
        OptionsView.CellAutoHeight = True
        OptionsView.CellTextMaxLineCount = 1
        OptionsView.ColumnAutoWidth = True
        OptionsView.Footer = True
        OptionsView.GroupByBox = False
        OptionsView.Indicator = True
        Preview.Visible = True
        Styles.IncSearch = DMInv.cxKrasniyText
        Styles.Selection = DMInv.cxJoltiyFon
        Styles.Header = DMInv.cxSiniyText
        object tvTemplateLessonIDTEMPL: TcxGridDBColumn
          Caption = 'ID'
          DataBinding.FieldName = 'IDTEMPL'
          Width = 50
        end
        object tvTemplateLessonCNANE: TcxGridDBColumn
          Caption = #1053#1072#1080#1084#1077#1085#1086#1074#1072#1085#1080#1077' '#1096#1072#1073#1083#1086#1085#1072
          DataBinding.FieldName = 'CNANE'
        end
        object tvTemplateLessonTYPELESSON: TcxGridDBColumn
          Caption = #1058#1080#1087' '#1091#1088#1086#1082#1072
          DataBinding.FieldName = 'TYPELESSON'
          Width = 205
        end
        object tvTemplateLessonFORMLESSON: TcxGridDBColumn
          Caption = #1060#1086#1088#1084#1072' '#1091#1088#1086#1082#1072
          DataBinding.FieldName = 'FORMLESSON'
          Width = 269
        end
        object tvTemplateLessonCCOMMENT: TcxGridDBColumn
          Caption = #1050#1086#1084#1084#1077#1085#1090#1072#1088#1080#1081
          DataBinding.FieldName = 'CCOMMENT'
          Width = 266
        end
      end
      object cxGridLevel3: TcxGridLevel
        GridView = tvTemplateLesson
      end
    end
  end
  object Panel4: TPanel [5]
    Left = 0
    Top = 353
    Width = 1196
    Height = 543
    Align = alClient
    Caption = 'Panel4'
    TabOrder = 5
    object Splitter1: TSplitter
      Left = 825
      Top = 1
      Width = 5
      Height = 541
    end
    object GroupBox3: TGroupBox
      Left = 1
      Top = 1
      Width = 824
      Height = 541
      Align = alLeft
      Caption = #1069#1090#1072#1087#1099':'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clGray
      Font.Height = -13
      Font.Name = 'Tahoma'
      Font.Style = [fsBold]
      ParentFont = False
      TabOrder = 0
      object cxGrid1: TcxGrid
        Left = 2
        Top = 18
        Width = 820
        Height = 521
        Align = alClient
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -13
        Font.Name = 'Tahoma'
        Font.Style = []
        ParentFont = False
        TabOrder = 0
        LookAndFeel.Kind = lfStandard
        object cxGridDBTableView1: TcxGridDBTableView
          NavigatorButtons.ConfirmDelete = False
          NavigatorButtons.First.Visible = True
          NavigatorButtons.PriorPage.Visible = True
          NavigatorButtons.Prior.Visible = True
          NavigatorButtons.Next.Visible = True
          NavigatorButtons.NextPage.Visible = True
          NavigatorButtons.Last.Visible = True
          NavigatorButtons.Insert.Visible = False
          NavigatorButtons.Append.Visible = False
          NavigatorButtons.Delete.Visible = False
          NavigatorButtons.Edit.Visible = False
          NavigatorButtons.Post.Visible = False
          NavigatorButtons.Cancel.Visible = False
          NavigatorButtons.Refresh.Visible = False
          NavigatorButtons.SaveBookmark.Visible = False
          NavigatorButtons.GotoBookmark.Visible = False
          NavigatorButtons.Filter.Visible = False
          FilterBox.Position = fpTop
          DataController.DataSource = dsSTAGES
          DataController.Summary.DefaultGroupSummaryItems = <>
          DataController.Summary.FooterSummaryItems = <
            item
              Format = '0'
              Kind = skSum
              FieldName = 'CTIME'
              Column = cxGridDBTableView1CTIME
            end>
          DataController.Summary.SummaryGroups = <>
          FilterRow.InfoText = #1065#1077#1083#1082#1085#1080#1090#1077' '#1079#1076#1077#1089#1100' '#1076#1083#1103' '#1089#1086#1079#1076#1072#1085#1080#1103' '#1092#1080#1083#1100#1090#1088#1072
          NewItemRow.InfoText = #1065#1105#1083#1082#1085#1080#1090#1077' '#1079#1076#1077#1089#1100' '#1076#1083#1103' '#1076#1086#1073#1072#1074#1083#1077#1085#1080#1103' '#1085#1086#1074#1086#1081' '#1089#1090#1088#1086#1082#1080
          OptionsBehavior.CellHints = True
          OptionsBehavior.IncSearch = True
          OptionsCustomize.ColumnFiltering = False
          OptionsData.CancelOnExit = False
          OptionsData.Deleting = False
          OptionsData.DeletingConfirmation = False
          OptionsData.Editing = False
          OptionsData.Inserting = False
          OptionsView.NavigatorOffset = 10
          OptionsView.NoDataToDisplayInfoText = '<'#1053#1077#1090' '#1076#1072#1085#1085#1099#1093'>'
          OptionsView.CellAutoHeight = True
          OptionsView.CellTextMaxLineCount = 1
          OptionsView.ColumnAutoWidth = True
          OptionsView.Footer = True
          OptionsView.GroupByBox = False
          OptionsView.HeaderAutoHeight = True
          OptionsView.Indicator = True
          Preview.Visible = True
          Styles.IncSearch = DMInv.cxKrasniyText
          Styles.Selection = DMInv.cxJoltiyFon
          Styles.Header = DMInv.cxSiniyText
          object cxGridDBTableView1POS: TcxGridDBColumn
            Caption = #1055#1086#1079#1080#1094#1080#1103
            DataBinding.FieldName = 'POS'
            Width = 51
          end
          object cxGridDBTableView1CSDIDSTAGES: TcxGridDBColumn
            Caption = #1053#1072#1080#1084#1077#1085#1086#1074#1072#1085#1080#1077' '#1101#1090#1072#1087#1072
            DataBinding.FieldName = 'CSDIDSTAGES'
            Width = 84
          end
          object cxGridDBTableView1CMETOD: TcxGridDBColumn
            Caption = #1052#1077#1090#1086#1076
            DataBinding.FieldName = 'CMETOD'
            Width = 40
          end
          object cxGridDBTableView1CSUBJ: TcxGridDBColumn
            Caption = #1057#1091#1073#1098#1077#1082#1090
            DataBinding.FieldName = 'CSUBJ'
            Width = 55
          end
          object cxGridDBTableView1COBJ: TcxGridDBColumn
            Caption = #1054#1073#1098#1077#1082#1090
            DataBinding.FieldName = 'COBJ'
            Width = 55
          end
          object cxGridDBTableView1CRESULT: TcxGridDBColumn
            Caption = #1055#1083#1072#1085#1080#1088#1091#1077#1084#1099#1081' '#1088#1077#1079#1091#1083#1100#1090#1072#1090
            DataBinding.FieldName = 'CRESULT'
            Width = 139
          end
          object cxGridDBTableView1ACTTEACHER: TcxGridDBColumn
            Caption = #1055#1086#1089#1083#1077#1076#1086#1074#1072#1090#1077#1083#1100#1085#1086#1089#1090#1100' '#1076#1077#1081#1089#1090#1074#1080#1081' '#1091#1095#1080#1090#1077#1083#1103
            DataBinding.FieldName = 'ACTTEACHER'
            Width = 178
          end
          object cxGridDBTableView1ACTLEARNER: TcxGridDBColumn
            Caption = #1055#1086#1089#1083#1077#1076#1086#1074#1072#1090#1077#1083#1100#1085#1086#1089#1090#1100' '#1076#1077#1081#1089#1090#1074#1080#1081' '#1091#1095#1072#1097#1080#1093#1089#1103
            DataBinding.FieldName = 'ACTLEARNER'
            Width = 130
          end
          object cxGridDBTableView1CTIME: TcxGridDBColumn
            Caption = #1055#1088#1086#1076#1086#1083#1078#1080#1090#1077#1083#1100#1085#1086#1089#1090#1100
            DataBinding.FieldName = 'CTIME'
            Width = 72
          end
        end
        object cxGridLevel1: TcxGridLevel
          GridView = cxGridDBTableView1
        end
      end
    end
    object Panel2: TPanel
      Left = 830
      Top = 1
      Width = 365
      Height = 541
      Align = alClient
      Caption = 'Panel2'
      TabOrder = 1
      object GroupBox4: TGroupBox
        Left = 1
        Top = 369
        Width = 363
        Height = 171
        Align = alClient
        Caption = #1057#1088#1077#1076#1089#1090#1074#1072' '#1086#1073#1091#1095#1077#1085#1080#1103':'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clGray
        Font.Height = -13
        Font.Name = 'Tahoma'
        Font.Style = [fsBold]
        ParentFont = False
        TabOrder = 0
        object cxGrid3: TcxGrid
          Left = 2
          Top = 18
          Width = 359
          Height = 151
          Align = alClient
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -13
          Font.Name = 'Tahoma'
          Font.Style = []
          ParentFont = False
          TabOrder = 0
          LookAndFeel.Kind = lfStandard
          object cxGridDBTableView3: TcxGridDBTableView
            NavigatorButtons.ConfirmDelete = False
            NavigatorButtons.First.Visible = True
            NavigatorButtons.PriorPage.Visible = True
            NavigatorButtons.Prior.Visible = True
            NavigatorButtons.Next.Visible = True
            NavigatorButtons.NextPage.Visible = True
            NavigatorButtons.Last.Visible = True
            NavigatorButtons.Insert.Visible = False
            NavigatorButtons.Append.Visible = False
            NavigatorButtons.Delete.Visible = False
            NavigatorButtons.Edit.Visible = False
            NavigatorButtons.Post.Visible = False
            NavigatorButtons.Cancel.Visible = False
            NavigatorButtons.Refresh.Visible = False
            NavigatorButtons.SaveBookmark.Visible = False
            NavigatorButtons.GotoBookmark.Visible = False
            NavigatorButtons.Filter.Visible = False
            FilterBox.Position = fpTop
            DataController.DataSource = dsTools
            DataController.Summary.DefaultGroupSummaryItems = <>
            DataController.Summary.FooterSummaryItems = <
              item
                Kind = skCount
                FieldName = 'pid'
              end>
            DataController.Summary.SummaryGroups = <>
            FilterRow.InfoText = #1065#1077#1083#1082#1085#1080#1090#1077' '#1079#1076#1077#1089#1100' '#1076#1083#1103' '#1089#1086#1079#1076#1072#1085#1080#1103' '#1092#1080#1083#1100#1090#1088#1072
            NewItemRow.InfoText = #1065#1105#1083#1082#1085#1080#1090#1077' '#1079#1076#1077#1089#1100' '#1076#1083#1103' '#1076#1086#1073#1072#1074#1083#1077#1085#1080#1103' '#1085#1086#1074#1086#1081' '#1089#1090#1088#1086#1082#1080
            OptionsBehavior.CellHints = True
            OptionsBehavior.IncSearch = True
            OptionsCustomize.ColumnFiltering = False
            OptionsData.CancelOnExit = False
            OptionsData.Deleting = False
            OptionsData.DeletingConfirmation = False
            OptionsData.Editing = False
            OptionsData.Inserting = False
            OptionsView.NavigatorOffset = 10
            OptionsView.NoDataToDisplayInfoText = '<'#1053#1077#1090' '#1076#1072#1085#1085#1099#1093'>'
            OptionsView.CellAutoHeight = True
            OptionsView.CellTextMaxLineCount = 1
            OptionsView.ColumnAutoWidth = True
            OptionsView.Footer = True
            OptionsView.GroupByBox = False
            OptionsView.Indicator = True
            Preview.Visible = True
            Styles.IncSearch = DMInv.cxKrasniyText
            Styles.Selection = DMInv.cxJoltiyFon
            Styles.Header = DMInv.cxSiniyText
            object cxGridDBTableView3SDNAME: TcxGridDBColumn
              Caption = #1053#1072#1080#1084#1077#1085#1086#1074#1072#1085#1080#1077
              DataBinding.FieldName = 'SDNAME'
            end
          end
          object cxGridLevel2: TcxGridLevel
            GridView = cxGridDBTableView3
          end
        end
      end
      object GroupBox5: TGroupBox
        Left = 1
        Top = 185
        Width = 363
        Height = 184
        Align = alTop
        Caption = #1055#1088#1080#1105#1084#1099' '#1086#1073#1091#1095#1077#1085#1080#1103
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clGray
        Font.Height = -13
        Font.Name = 'Tahoma'
        Font.Style = [fsBold]
        ParentFont = False
        TabOrder = 1
        object cxGrid2: TcxGrid
          Left = 2
          Top = 18
          Width = 359
          Height = 164
          Align = alClient
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -13
          Font.Name = 'Tahoma'
          Font.Style = []
          ParentFont = False
          TabOrder = 0
          LookAndFeel.Kind = lfStandard
          object cxGridDBTableView2: TcxGridDBTableView
            NavigatorButtons.ConfirmDelete = False
            NavigatorButtons.First.Visible = True
            NavigatorButtons.PriorPage.Visible = True
            NavigatorButtons.Prior.Visible = True
            NavigatorButtons.Next.Visible = True
            NavigatorButtons.NextPage.Visible = True
            NavigatorButtons.Last.Visible = True
            NavigatorButtons.Insert.Visible = False
            NavigatorButtons.Append.Visible = False
            NavigatorButtons.Delete.Visible = False
            NavigatorButtons.Edit.Visible = False
            NavigatorButtons.Post.Visible = False
            NavigatorButtons.Cancel.Visible = False
            NavigatorButtons.Refresh.Visible = False
            NavigatorButtons.SaveBookmark.Visible = False
            NavigatorButtons.GotoBookmark.Visible = False
            NavigatorButtons.Filter.Visible = False
            FilterBox.Position = fpTop
            DataController.DataSource = dsReceptions
            DataController.Summary.DefaultGroupSummaryItems = <>
            DataController.Summary.FooterSummaryItems = <
              item
                Kind = skCount
                FieldName = 'pid'
              end>
            DataController.Summary.SummaryGroups = <>
            FilterRow.InfoText = #1065#1077#1083#1082#1085#1080#1090#1077' '#1079#1076#1077#1089#1100' '#1076#1083#1103' '#1089#1086#1079#1076#1072#1085#1080#1103' '#1092#1080#1083#1100#1090#1088#1072
            NewItemRow.InfoText = #1065#1105#1083#1082#1085#1080#1090#1077' '#1079#1076#1077#1089#1100' '#1076#1083#1103' '#1076#1086#1073#1072#1074#1083#1077#1085#1080#1103' '#1085#1086#1074#1086#1081' '#1089#1090#1088#1086#1082#1080
            OptionsBehavior.CellHints = True
            OptionsBehavior.IncSearch = True
            OptionsCustomize.ColumnFiltering = False
            OptionsData.CancelOnExit = False
            OptionsData.Deleting = False
            OptionsData.DeletingConfirmation = False
            OptionsData.Editing = False
            OptionsData.Inserting = False
            OptionsView.NavigatorOffset = 10
            OptionsView.NoDataToDisplayInfoText = '<'#1053#1077#1090' '#1076#1072#1085#1085#1099#1093'>'
            OptionsView.CellAutoHeight = True
            OptionsView.CellTextMaxLineCount = 1
            OptionsView.ColumnAutoWidth = True
            OptionsView.Footer = True
            OptionsView.GroupByBox = False
            OptionsView.Indicator = True
            Preview.Visible = True
            Styles.IncSearch = DMInv.cxKrasniyText
            Styles.Selection = DMInv.cxJoltiyFon
            Styles.Header = DMInv.cxSiniyText
            object cxGridDBTableView2SDNAME: TcxGridDBColumn
              Caption = #1053#1072#1080#1084#1077#1085#1086#1074#1072#1085#1080#1077
              DataBinding.FieldName = 'SDNAME'
            end
          end
          object cxGridLevel4: TcxGridLevel
            GridView = cxGridDBTableView2
          end
        end
      end
      object GroupBox6: TGroupBox
        Left = 1
        Top = 1
        Width = 363
        Height = 184
        Align = alTop
        Caption = #1060#1054#1055#1044
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clGray
        Font.Height = -13
        Font.Name = 'Tahoma'
        Font.Style = [fsBold]
        ParentFont = False
        TabOrder = 2
        object cxGrid4: TcxGrid
          Left = 2
          Top = 18
          Width = 359
          Height = 164
          Align = alClient
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -13
          Font.Name = 'Tahoma'
          Font.Style = []
          ParentFont = False
          TabOrder = 0
          LookAndFeel.Kind = lfStandard
          object cxGridDBTableView4: TcxGridDBTableView
            NavigatorButtons.ConfirmDelete = False
            NavigatorButtons.First.Visible = True
            NavigatorButtons.PriorPage.Visible = True
            NavigatorButtons.Prior.Visible = True
            NavigatorButtons.Next.Visible = True
            NavigatorButtons.NextPage.Visible = True
            NavigatorButtons.Last.Visible = True
            NavigatorButtons.Insert.Visible = False
            NavigatorButtons.Append.Visible = False
            NavigatorButtons.Delete.Visible = False
            NavigatorButtons.Edit.Visible = False
            NavigatorButtons.Post.Visible = False
            NavigatorButtons.Cancel.Visible = False
            NavigatorButtons.Refresh.Visible = False
            NavigatorButtons.SaveBookmark.Visible = False
            NavigatorButtons.GotoBookmark.Visible = False
            NavigatorButtons.Filter.Visible = False
            FilterBox.Position = fpTop
            DataController.DataSource = dsFOPD
            DataController.Summary.DefaultGroupSummaryItems = <>
            DataController.Summary.FooterSummaryItems = <
              item
                Kind = skCount
                FieldName = 'pid'
              end>
            DataController.Summary.SummaryGroups = <>
            FilterRow.InfoText = #1065#1077#1083#1082#1085#1080#1090#1077' '#1079#1076#1077#1089#1100' '#1076#1083#1103' '#1089#1086#1079#1076#1072#1085#1080#1103' '#1092#1080#1083#1100#1090#1088#1072
            NewItemRow.InfoText = #1065#1105#1083#1082#1085#1080#1090#1077' '#1079#1076#1077#1089#1100' '#1076#1083#1103' '#1076#1086#1073#1072#1074#1083#1077#1085#1080#1103' '#1085#1086#1074#1086#1081' '#1089#1090#1088#1086#1082#1080
            OptionsBehavior.CellHints = True
            OptionsBehavior.IncSearch = True
            OptionsCustomize.ColumnFiltering = False
            OptionsData.CancelOnExit = False
            OptionsData.Deleting = False
            OptionsData.DeletingConfirmation = False
            OptionsData.Editing = False
            OptionsData.Inserting = False
            OptionsView.NavigatorOffset = 10
            OptionsView.NoDataToDisplayInfoText = '<'#1053#1077#1090' '#1076#1072#1085#1085#1099#1093'>'
            OptionsView.CellAutoHeight = True
            OptionsView.CellTextMaxLineCount = 1
            OptionsView.ColumnAutoWidth = True
            OptionsView.Footer = True
            OptionsView.GroupByBox = False
            OptionsView.Indicator = True
            Preview.Visible = True
            Styles.IncSearch = DMInv.cxKrasniyText
            Styles.Selection = DMInv.cxJoltiyFon
            Styles.Header = DMInv.cxSiniyText
            object cxGridDBTableView4SDNAME: TcxGridDBColumn
              Caption = #1053#1072#1080#1084#1077#1085#1086#1074#1072#1085#1080#1077
              DataBinding.FieldName = 'SDNAME'
              Width = 47
            end
          end
          object cxGridLevel5: TcxGridLevel
            GridView = cxGridDBTableView4
          end
        end
      end
    end
  end
  object dsTemplLesson: TDataSource
    DataSet = qTemplLesson
    Left = 48
    Top = 192
  end
  object qTemplLesson: TIBQuery
    Database = DMInv.DBRead
    Transaction = DMInv.IBTransaction1
    CachedUpdates = True
    SQL.Strings = (
      'Select ttl.*, sd1.sdname as typelesson, sd2.sdname as formlesson'
      'from ttemlatelesson  ttl'
      '    left join sys_dic sd1 on sd1.sdid=ttl.sdidtype'
      '    left join sys_dic sd2 on sd2.sdid=ttl.sdidform'
      'where  ISDELETE is null')
    UpdateObject = quTemplLesson
    GeneratorField.Field = 'SDID'
    Left = 80
    Top = 192
    object qTemplLessonIDTEMPL: TIntegerField
      FieldName = 'IDTEMPL'
      Origin = '"TTEMLATELESSON"."IDTEMPL"'
      ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
      Required = True
    end
    object qTemplLessonCNANE: TIBStringField
      FieldName = 'CNANE'
      Origin = '"TTEMLATELESSON"."CNANE"'
      Size = 40
    end
    object qTemplLessonSDIDTYPE: TIntegerField
      FieldName = 'SDIDTYPE'
      Origin = '"TTEMLATELESSON"."SDIDTYPE"'
    end
    object qTemplLessonSDIDFORM: TIntegerField
      FieldName = 'SDIDFORM'
      Origin = '"TTEMLATELESSON"."SDIDFORM"'
    end
    object qTemplLessonCTIME: TIntegerField
      FieldName = 'CTIME'
      Origin = '"TTEMLATELESSON"."CTIME"'
    end
    object qTemplLessonCCOMMENT: TIBStringField
      FieldName = 'CCOMMENT'
      Origin = '"TTEMLATELESSON"."CCOMMENT"'
      Size = 40
    end
    object qTemplLessonTYPELESSON: TIBStringField
      FieldName = 'TYPELESSON'
      Origin = '"SYS_DIC"."SDNAME"'
      Size = 255
    end
    object qTemplLessonFORMLESSON: TIBStringField
      FieldName = 'FORMLESSON'
      Origin = '"SYS_DIC"."SDNAME"'
      Size = 255
    end
  end
  object qSTAGES: TIBQuery
    Database = DMInv.DBRead
    Transaction = DMInv.IBTransaction1
    CachedUpdates = True
    DataSource = dsTemplLesson
    SQL.Strings = (
      'select ts.*, sd1.sdname as cSDIDSTAGES,'
      'sd2.sdname as cMETOD,'
      'sd5.sdname as cSUBJ,'
      'sd6.sdname as cOBJ'
      'from TSTAGESLESSON ts'
      '    left join sys_dic sd1 on sd1.sdid=SDIDSTAGES'
      '    left join sys_dic sd2 on sd2.sdid=IDMETOD'
      '    left join sys_dic sd5 on sd5.sdid=IDSUBJ'
      '    left join sys_dic sd6 on sd6.sdid=IDOBJ'
      'where IDTEMPL=:IDTEMPL and ISDELETE is null')
    GeneratorField.Field = 'SDID'
    Left = 56
    Top = 472
    ParamData = <
      item
        DataType = ftInteger
        Name = 'IDTEMPL'
        ParamType = ptUnknown
        Size = 4
      end>
    object qSTAGESIDSTAGES: TIntegerField
      FieldName = 'IDSTAGES'
      Origin = '"TSTAGESLESSON"."IDSTAGES"'
      ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
      Required = True
    end
    object qSTAGESIDTEMPL: TIntegerField
      FieldName = 'IDTEMPL'
      Origin = '"TSTAGESLESSON"."IDTEMPL"'
    end
    object qSTAGESPOS: TIntegerField
      FieldName = 'POS'
      Origin = '"TSTAGESLESSON"."POS"'
    end
    object qSTAGESSDIDSTAGES: TIntegerField
      FieldName = 'SDIDSTAGES'
      Origin = '"TSTAGESLESSON"."SDIDSTAGES"'
    end
    object qSTAGESCTIME: TIntegerField
      FieldName = 'CTIME'
      Origin = '"TSTAGESLESSON"."CTIME"'
    end
    object qSTAGESIDMETOD: TIntegerField
      FieldName = 'IDMETOD'
      Origin = '"TSTAGESLESSON"."IDMETOD"'
    end
    object qSTAGESIDSUBJ: TIntegerField
      FieldName = 'IDSUBJ'
      Origin = '"TSTAGESLESSON"."IDSUBJ"'
    end
    object qSTAGESIDOBJ: TIntegerField
      FieldName = 'IDOBJ'
      Origin = '"TSTAGESLESSON"."IDOBJ"'
    end
    object qSTAGESCSDIDSTAGES: TIBStringField
      FieldName = 'CSDIDSTAGES'
      Origin = '"SYS_DIC"."SDNAME"'
      Size = 255
    end
    object qSTAGESCMETOD: TIBStringField
      FieldName = 'CMETOD'
      Origin = '"SYS_DIC"."SDNAME"'
      Size = 255
    end
    object qSTAGESCSUBJ: TIBStringField
      FieldName = 'CSUBJ'
      Origin = '"SYS_DIC"."SDNAME"'
      Size = 255
    end
    object qSTAGESCOBJ: TIBStringField
      FieldName = 'COBJ'
      Origin = '"SYS_DIC"."SDNAME"'
      Size = 255
    end
    object qSTAGESCRESULT: TIBStringField
      FieldName = 'CRESULT'
      Origin = '"TSTAGESLESSON"."CRESULT"'
      Size = 2048
    end
    object qSTAGESACTTEACHER: TIBStringField
      FieldName = 'ACTTEACHER'
      Origin = '"TSTAGESLESSON"."ACTTEACHER"'
      Size = 2048
    end
    object qSTAGESACTLEARNER: TIBStringField
      FieldName = 'ACTLEARNER'
      Origin = '"TSTAGESLESSON"."ACTLEARNER"'
      Size = 2048
    end
    object qSTAGESISDELETE: TIntegerField
      FieldName = 'ISDELETE'
      Origin = '"TSTAGESLESSON"."ISDELETE"'
    end
  end
  object dsSTAGES: TDataSource
    DataSet = qSTAGES
    Left = 24
    Top = 472
  end
  object dsFOPD: TDataSource
    DataSet = qFOPD
    Left = 608
    Top = 440
  end
  object dsReceptions: TDataSource
    DataSet = qReceptions
    Left = 608
    Top = 616
  end
  object dsTools: TDataSource
    DataSet = qTools
    Left = 608
    Top = 800
  end
  object qSelectInf: TIBQuery
    Database = DMInv.DBRead
    Transaction = DMInv.IBTransaction1
    SQL.Strings = (
      'select tt.idtempl, ts.idstages, sd.sdname,'
      'op.SDID,op.IDTYPE'
      'from ttemlatelesson tt'
      'left join tstageslesson ts on ts.idtempl=tt.idtempl'
      'left join tstagesoptions op on op.idstages=ts.idstages'
      'left join sys_dic sd on sd.sdid=op.sdid'
      'where sd.sdname is not null and tt.idtempl=:idtempl'
      'and op.idtype=:idtype'
      '')
    GeneratorField.Field = 'SDID'
    Left = 784
    Top = 272
    ParamData = <
      item
        DataType = ftUnknown
        Name = 'idtempl'
        ParamType = ptUnknown
      end
      item
        DataType = ftUnknown
        Name = 'idtype'
        ParamType = ptUnknown
      end>
    object qSelectInfIDTEMPL: TIntegerField
      FieldName = 'IDTEMPL'
      Origin = '"TTEMLATELESSON"."IDTEMPL"'
      ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
      Required = True
    end
    object qSelectInfIDSTAGES: TIntegerField
      FieldName = 'IDSTAGES'
      Origin = '"TSTAGESLESSON"."IDSTAGES"'
      ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
    end
    object qSelectInfSDNAME: TIBStringField
      FieldName = 'SDNAME'
      Origin = '"SYS_DIC"."SDNAME"'
      Size = 255
    end
    object qSelectInfSDID: TIntegerField
      FieldName = 'SDID'
      Origin = '"TSTAGESOPTIONS"."SDID"'
    end
    object qSelectInfIDTYPE: TIntegerField
      FieldName = 'IDTYPE'
      Origin = '"TSTAGESOPTIONS"."IDTYPE"'
    end
  end
  object qFOPD: TIBQuery
    Database = DMInv.DBRead
    Transaction = DMInv.IBTransaction1
    CachedUpdates = True
    DataSource = dsSTAGES
    SQL.Strings = (
      'select ts.idstages, sd.sdname,'
      'op.SDID,op.IDTYPE'
      'from tstageslesson ts'
      'left join tstagesoptions op on op.idstages=ts.idstages'
      'left join sys_dic sd on sd.sdid=op.sdid'
      'where sd.sdname is not null and ts.idstages=:idstages'
      'and op.idtype=1')
    GeneratorField.Field = 'SDID'
    Left = 640
    Top = 440
    ParamData = <
      item
        DataType = ftInteger
        Name = 'IDSTAGES'
        ParamType = ptUnknown
        Size = 4
      end>
    object qFOPDIDSTAGES: TIntegerField
      FieldName = 'IDSTAGES'
      Origin = '"TSTAGESLESSON"."IDSTAGES"'
      ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
      Required = True
    end
    object qFOPDSDNAME: TIBStringField
      FieldName = 'SDNAME'
      Origin = '"SYS_DIC"."SDNAME"'
      Size = 255
    end
    object qFOPDSDID: TIntegerField
      FieldName = 'SDID'
      Origin = '"TSTAGESOPTIONS"."SDID"'
    end
    object qFOPDIDTYPE: TIntegerField
      FieldName = 'IDTYPE'
      Origin = '"TSTAGESOPTIONS"."IDTYPE"'
    end
  end
  object qReceptions: TIBQuery
    Database = DMInv.DBRead
    Transaction = DMInv.IBTransaction1
    CachedUpdates = True
    DataSource = dsSTAGES
    SQL.Strings = (
      'select ts.idstages, sd.sdname,'
      'op.SDID,op.IDTYPE'
      'from tstageslesson ts'
      'left join tstagesoptions op on op.idstages=ts.idstages'
      'left join sys_dic sd on sd.sdid=op.sdid'
      'where sd.sdname is not null and ts.idstages=:idstages'
      'and op.idtype=2')
    GeneratorField.Field = 'SDID'
    Left = 640
    Top = 616
    ParamData = <
      item
        DataType = ftUnknown
        Name = 'idstages'
        ParamType = ptUnknown
      end>
    object qReceptionsIDSTAGES: TIntegerField
      FieldName = 'IDSTAGES'
      Origin = '"TSTAGESLESSON"."IDSTAGES"'
      ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
      Required = True
    end
    object qReceptionsSDNAME: TIBStringField
      FieldName = 'SDNAME'
      Origin = '"SYS_DIC"."SDNAME"'
      Size = 255
    end
    object qReceptionsSDID: TIntegerField
      FieldName = 'SDID'
      Origin = '"TSTAGESOPTIONS"."SDID"'
    end
    object qReceptionsIDTYPE: TIntegerField
      FieldName = 'IDTYPE'
      Origin = '"TSTAGESOPTIONS"."IDTYPE"'
    end
  end
  object qTools: TIBQuery
    Database = DMInv.DBRead
    Transaction = DMInv.IBTransaction1
    CachedUpdates = True
    DataSource = dsSTAGES
    SQL.Strings = (
      'select ts.idstages, sd.sdname,'
      'op.SDID,op.IDTYPE'
      'from tstageslesson ts'
      'left join tstagesoptions op on op.idstages=ts.idstages'
      'left join sys_dic sd on sd.sdid=op.sdid'
      'where sd.sdname is not null and ts.idstages=:idstages'
      'and op.idtype=3')
    GeneratorField.Field = 'SDID'
    Left = 640
    Top = 800
    ParamData = <
      item
        DataType = ftUnknown
        Name = 'idstages'
        ParamType = ptUnknown
      end>
    object qToolsIDSTAGES: TIntegerField
      FieldName = 'IDSTAGES'
      Origin = '"TSTAGESLESSON"."IDSTAGES"'
      ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
      Required = True
    end
    object qToolsSDNAME: TIBStringField
      FieldName = 'SDNAME'
      Origin = '"SYS_DIC"."SDNAME"'
      Size = 255
    end
    object qToolsSDID: TIntegerField
      FieldName = 'SDID'
      Origin = '"TSTAGESOPTIONS"."SDID"'
    end
    object qToolsIDTYPE: TIntegerField
      FieldName = 'IDTYPE'
      Origin = '"TSTAGESOPTIONS"."IDTYPE"'
    end
  end
  object quTemplLesson: TIBUpdateSQL
    RefreshSQL.Strings = (
      'Select '
      '  IDTEMPL,'
      '  CNANE,'
      '  SDIDTYPE,'
      '  SDIDFORM,'
      '  CTIME,'
      '  CCOMMENT'
      'from ttemlatelesson '
      'where'
      '  CCOMMENT = :CCOMMENT and'
      '  CNANE = :CNANE and'
      '  CTIME = :CTIME and'
      '  IDTEMPL = :IDTEMPL and'
      '  SDIDFORM = :SDIDFORM and'
      '  SDIDTYPE = :SDIDTYPE')
    ModifySQL.Strings = (
      'update ttemlatelesson'
      'set'
      '  CCOMMENT = :CCOMMENT,'
      '  CNANE = :CNANE,'
      '  CTIME = :CTIME,'
      '  SDIDFORM = :SDIDFORM,'
      '  SDIDTYPE = :SDIDTYPE'
      'where'
      '  IDTEMPL = :OLD_IDTEMPL ')
    InsertSQL.Strings = (
      'insert into ttemlatelesson'
      '  (CCOMMENT, CNANE, CTIME, IDTEMPL, SDIDFORM, SDIDTYPE)'
      'values'
      '  (:CCOMMENT, :CNANE, :CTIME, :IDTEMPL, :SDIDFORM, :SDIDTYPE)')
    DeleteSQL.Strings = (
      'update ttemlatelesson'
      'set'
      '  ISDELETE=1'
      'where'
      '   IDTEMPL = :OLD_IDTEMPL')
    Left = 112
    Top = 192
  end
end
